﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace eSSP_example.Cpi 
{
    public enum EventCode
    {
        RET_SUCCESS = 0x0,

        //  0x1000
        RET_ERROR_API_NOT_STARTED = 0x1000,
        RET_ERROR_OTHER_REQUEST_CURRENTLY_ACTIVE = 0x1001,
        RET_ERROR_DEVICE_OFFLINE = 0x1002,
        RET_ERROR_DEVICE_WENT_OFFLINE = 0x1003,
        RET_ERROR_DEVICE_NOT_IN_READY_STATE = 0x1004,
        RET_ERROR_ILLEGAL_REQUEST = 0x1005,
        RET_ERROR_DEVICE_COULD_NOT_HANDLE = 0x1006,
        RET_ERROR_EVENT_NOT_FOUND = 0x1007,
        RET_ERROR_DEVIDE_IN_ERROR_STATE = 0x1008,
        RET_ERROR_DISPENSE_REQUEST_FAILED = 0x2000,

        //  0x2000
        RET_ERROR_UNEXPECTED_STATE_DURING_PAY_OUT = 0x2001,
        RET_ERROR_WHILE_DISPENSING_COINS = 0x2002,
        RET_ERROR_INVALID_HOPPER_NO = 0x2003,
        RET_ERROR_INVALID_COIN_TYPE = 0x2004,

        //  0x3000
        RET_ERROR_INSERTION_REQUEST_FAILED = 0x3000,
        RET_ERROR_UNEXPECTED_STATE_DURING_PAY_IN = 0x3001,
        RET_ERROR_DISABLING_ACCEPTANCE_DENIED = 0x3002
    }
}
